Optimal. Leaf size=60 \[ -\frac {x^2}{4}-\frac {x \sqrt {1-a^2 x^2} \text {ArcCos}(a x)}{2 a}-\frac {\text {ArcCos}(a x)^2}{4 a^2}+\frac {1}{2} x^2 \text {ArcCos}(a x)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {4724, 4796,
4738, 30} \begin {gather*} -\frac {x \sqrt {1-a^2 x^2} \text {ArcCos}(a x)}{2 a}-\frac {\text {ArcCos}(a x)^2}{4 a^2}+\frac {1}{2} x^2 \text {ArcCos}(a x)^2-\frac {x^2}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 4724
Rule 4738
Rule 4796
Rubi steps
\begin {align*} \int x \cos ^{-1}(a x)^2 \, dx &=\frac {1}{2} x^2 \cos ^{-1}(a x)^2+a \int \frac {x^2 \cos ^{-1}(a x)}{\sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {x \sqrt {1-a^2 x^2} \cos ^{-1}(a x)}{2 a}+\frac {1}{2} x^2 \cos ^{-1}(a x)^2-\frac {\int x \, dx}{2}+\frac {\int \frac {\cos ^{-1}(a x)}{\sqrt {1-a^2 x^2}} \, dx}{2 a}\\ &=-\frac {x^2}{4}-\frac {x \sqrt {1-a^2 x^2} \cos ^{-1}(a x)}{2 a}-\frac {\cos ^{-1}(a x)^2}{4 a^2}+\frac {1}{2} x^2 \cos ^{-1}(a x)^2\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 57, normalized size = 0.95 \begin {gather*} -\frac {x^2}{4}-\frac {x \sqrt {1-a^2 x^2} \text {ArcCos}(a x)}{2 a}+\frac {\left (-1+2 a^2 x^2\right ) \text {ArcCos}(a x)^2}{4 a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 63, normalized size = 1.05
method | result | size |
derivativedivides | \(\frac {\frac {a^{2} x^{2} \arccos \left (a x \right )^{2}}{2}-\frac {\arccos \left (a x \right ) \left (a x \sqrt {-a^{2} x^{2}+1}+\arccos \left (a x \right )\right )}{2}+\frac {\arccos \left (a x \right )^{2}}{4}-\frac {a^{2} x^{2}}{4}+\frac {1}{4}}{a^{2}}\) | \(63\) |
default | \(\frac {\frac {a^{2} x^{2} \arccos \left (a x \right )^{2}}{2}-\frac {\arccos \left (a x \right ) \left (a x \sqrt {-a^{2} x^{2}+1}+\arccos \left (a x \right )\right )}{2}+\frac {\arccos \left (a x \right )^{2}}{4}-\frac {a^{2} x^{2}}{4}+\frac {1}{4}}{a^{2}}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.43, size = 51, normalized size = 0.85 \begin {gather*} -\frac {a^{2} x^{2} + 2 \, \sqrt {-a^{2} x^{2} + 1} a x \arccos \left (a x\right ) - {\left (2 \, a^{2} x^{2} - 1\right )} \arccos \left (a x\right )^{2}}{4 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 58, normalized size = 0.97 \begin {gather*} \begin {cases} \frac {x^{2} \operatorname {acos}^{2}{\left (a x \right )}}{2} - \frac {x^{2}}{4} - \frac {x \sqrt {- a^{2} x^{2} + 1} \operatorname {acos}{\left (a x \right )}}{2 a} - \frac {\operatorname {acos}^{2}{\left (a x \right )}}{4 a^{2}} & \text {for}\: a \neq 0 \\\frac {\pi ^{2} x^{2}}{8} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 55, normalized size = 0.92 \begin {gather*} \frac {1}{2} \, x^{2} \arccos \left (a x\right )^{2} - \frac {1}{4} \, x^{2} - \frac {\sqrt {-a^{2} x^{2} + 1} x \arccos \left (a x\right )}{2 \, a} - \frac {\arccos \left (a x\right )^{2}}{4 \, a^{2}} + \frac {1}{8 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int x\,{\mathrm {acos}\left (a\,x\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________